﻿/*******************************************************************************
 * Copyright © 2016-2020 北京网非科技有限公司 版权所有
 * Author: 北京网非科技有限公司
 * Description: 网非快速开发平台NET
 * Website：http://www.wfdot.com
*********************************************************************************/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace CubicFWNet.Data.SystemManage.Model
{
    [Table("Relevance")]
    public class Relevance
    {
        public Relevance()
        {
            this.Id = Guid.NewGuid();
            this.Description = string.Empty;
            this.CreateTime = DateTime.Now;
        }

        [Key]
        public System.Guid Id { get; set; }

         [MaxLength(100)]
        public string Description { get; set; }

        [Index("IX_FirstId-Type_Relevance", IsClustered = false, IsUnique = false, Order = 2)]
        [MaxLength(50)]
        public string Type { get; set; }
        public System.DateTime CreateTime { get; set; }

        public System.Guid CreatorId { get; set; }

        [Index("IX_FirstId-Type_Relevance", IsClustered = false, IsUnique = false, Order = 1)]
        public System.Guid FirstId { get; set; }

        public System.Guid SecondId { get; set; }
    }
}
